﻿namespace _9.建造者模式;

public class PersonThinBuilder : PersonBuilder
{
    public PersonThinBuilder(Graphics g, Pen p) : base(g, p)
    {

    }
    public override void BuildArmLeft()
    {
        g.DrawLine(p, 60, 50, 40, 100);
    }

    public override void BuildArmRight()
    {
        g.DrawLine(p, 70, 50, 90, 100);
    }

    public override void BuildBody()
    {
        g.DrawRectangle(p, 60, 50, 10, 50);
        
    }

    public override void BuildHead()
    {
        g.DrawEllipse(p, 50, 20, 30, 30);
        
    }

    public override void BuildLegLeft()
    {
        g.DrawLine(p, 60, 100, 45, 150);
    }

    public override void BuildLegRight()
    {
        g.DrawLine(p, 70, 100, 85, 150);
    }
}
